package com.iking.housekeeping.entity.user;

import java.util.Date;
import org.hibernate.validator.constraints.NotBlank;

import com.iking.housekeeping.util.MessageDigest5;

/**
 * 系统用户
 * 
 * @author Administrator
 *
 */
public class SysUser {
	
	/**
	 * 用户id
	 */
	private String fId;
	@NotBlank(message = "用户名不能为空")
	
	/**
	 * 用户名
	 */
	private String fLoginName;
	@NotBlank(message = "用户名不能为空")
	
	/**
	 * 用户密码
	 */
	private String fPassword;
	
	/**
	 * 状态
	 */
	private Integer fStatus;
	
	/**
	 * 创建时间
	 */
	private Date fGmtCreate;
	
	/**
	 * 更新时间
	 */
	private Date fGmtModified;
	
	/**
	 * 用户真实姓名
	 */
	private String fUserName;
	
	
	/**
	 * 无惨构造
	 */
	public SysUser() {

	}
	
	/**
	 * 有参构造
	 * @param fId
	 * @param fLoginName
	 * @param fPassword
	 */
	public SysUser(String fId,String fLoginName, String fPassword) {
		this.fId=fId;
		this.fLoginName=fLoginName;
		this.fPassword= MessageDigest5.md5(fPassword);
		this.fStatus=0;
	}
	public String getfId() {
		return fId;
	}

	public void setfId(String fId) {
		this.fId = fId == null ? null : fId.trim();
	}
	
	public String getfUserName() {
		return fUserName;
	}
	
	public void setfUserName(String fUserName) {
		this.fUserName = fUserName;
	}

	public String getfLoginName() {
		return fLoginName;
	}

	public void setfLoginName(String fLoginName) {
		this.fLoginName = fLoginName == null ? null : fLoginName.trim();
	}

	public String getfPassword() {
		return fPassword;
	}

	public void setfPassword(String fPassword) {
		this.fPassword = fPassword == null ? null : fPassword.trim();
	}

	public Integer getfStatus() {
		return fStatus;
	}

	public void setfStatus(Integer fStatus) {
		this.fStatus = fStatus;
	}

	public Date getfGmtCreate() {
		return fGmtCreate;
	}

	public void setfGmtCreate(Date fGmtCreate) {
		this.fGmtCreate = fGmtCreate;
	}

	public Date getfGmtModified() {
		return fGmtModified;
	}

	public void setfGmtModified(Date fGmtModified) {
		this.fGmtModified = fGmtModified;
	}
}